<?php

Route::group(['middleware' => 'web', 'prefix' => 'shop', 'namespace' => 'Modules\Shop\Http\Controllers'], function()
{
    Route::get('/', 'ShopController@index')->name ('shop');
    Route::resource ('/category','CategoryController');
});

 
//article-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'shop','namespace'=>"Modules\Shop\Http\Controllers"], 
function () {
    Route::resource('article', 'ArticleController')->middleware("permission:admin,resource");
});